# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-crysp
_pkgname=crysp
pkgver=1.2
pkgrel=6
pkgdesc='Crypto Stuff in Python.'
arch=('any')
url='https://pypi.org/project/crysp/#files'
license=('GPL2')
depends=('python' 'python-future')
makedepends=('python-setuptools' 'python-wheel' 'python-pip')
source=("https://github.com/bdcht/crysp/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('7c35a6a3db798b36b9dce06fea19f3fe7ae69db86ed578c599159b45796f4adcaf06fc85ca495ed2f6470884577d8cb5bb645a540d8f60fd31d04f30004f4979')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

